]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
layout: Catch async errors
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 12 Feb 2026 13:48:36 +0000 (14:48 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 3 Mar 2026 12:49:03 +0000 (12:49 +0000)
It is good practice to avoid "unhandled promise rejection" errors,
even when a function is not expected to reject.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4070>

js/ui/layout.js

index 7b8af4726abda8b732699d5feaf6a34ca878fa67..8f07ac63eb6f927be756925353de28452c509a2f 100644 (file)
@@ -610,7 +610,7 @@ export const LayoutManager = GObject.registerClass({
         this._updateMonitors();
         this._updateBoxes();
         this._updateHotCorners();
-        this._updateBackgrounds();
+        this._updateBackgrounds().catch(logError);
         this._updateFullscreen();
         this._updateVisibility();
         this._queueUpdateRegions();